﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace PaintDotNetForms
{
    public class Pencil : Figure
    {
        #region IShape Members

        override public void draw(System.Drawing.Graphics g)
        {
            g.DrawLine(pen, startPoint, endPoint);
            startPoint = endPoint;
        }

        public override void setStartPoint(System.Drawing.Point startPoint)
        {
            if (this.startPoint == Point.Empty || startPoint == endPoint)
                this.startPoint = startPoint;            
        }

        #endregion

        public override event SizeChange SizeChangeEvent;
    }
}
